package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PrinterServicePointMapper;
import com.ruoyi.system.domain.PrinterServicePoint;
import com.ruoyi.system.service.IPrinterServicePointService;

/**
 * 一体打印机服务点Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
@Service
public class PrinterServicePointServiceImpl implements IPrinterServicePointService 
{
    @Autowired
    private PrinterServicePointMapper printerServicePointMapper;

    /**
     * 查询一体打印机服务点
     * 
     * @param id 一体打印机服务点主键
     * @return 一体打印机服务点
     */
    @Override
    public PrinterServicePoint selectPrinterServicePointById(Long id)
    {
        return printerServicePointMapper.selectPrinterServicePointById(id);
    }

    /**
     * 查询一体打印机服务点列表
     * 
     * @param printerServicePoint 一体打印机服务点
     * @return 一体打印机服务点
     */
    @Override
    public List<PrinterServicePoint> selectPrinterServicePointList(PrinterServicePoint printerServicePoint)
    {
        return printerServicePointMapper.selectPrinterServicePointList(printerServicePoint);
    }

    /**
     * 新增一体打印机服务点
     * 
     * @param printerServicePoint 一体打印机服务点
     * @return 结果
     */
    @Override
    public int insertPrinterServicePoint(PrinterServicePoint printerServicePoint)
    {
        return printerServicePointMapper.insertPrinterServicePoint(printerServicePoint);
    }

    /**
     * 修改一体打印机服务点
     * 
     * @param printerServicePoint 一体打印机服务点
     * @return 结果
     */
    @Override
    public int updatePrinterServicePoint(PrinterServicePoint printerServicePoint)
    {
        return printerServicePointMapper.updatePrinterServicePoint(printerServicePoint);
    }

    /**
     * 批量删除一体打印机服务点
     * 
     * @param ids 需要删除的一体打印机服务点主键
     * @return 结果
     */
    @Override
    public int deletePrinterServicePointByIds(Long[] ids)
    {
        return printerServicePointMapper.deletePrinterServicePointByIds(ids);
    }

    /**
     * 删除一体打印机服务点信息
     * 
     * @param id 一体打印机服务点主键
     * @return 结果
     */
    @Override
    public int deletePrinterServicePointById(Long id)
    {
        return printerServicePointMapper.deletePrinterServicePointById(id);
    }
}
